package com.woniuxy.usercoachassemble.controller;


import com.woniuxy.usercoachassemble.entity.Time;
import com.woniuxy.usercoachassemble.service.TimeService;
import org.example.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Lucas
 * @since 2020-07-10
 */
@RestController
@RequestMapping("time")
public class TimeController {
  @Autowired
    private TimeService timeServiceImpl;
  @RequestMapping("all")
  //查询所有的时间
   public Result<Time> getalltime(){

      return Result.Success(timeServiceImpl.selectalltime());


    }

}

